import { chartResizeDirective } from "./resize"; // 监听dom宽高变化

const directivesList = {
  Resize: chartResizeDirective,
};

const directives = {
  install: function (app) {
    Object.keys(directivesList).forEach((key) => {
      app.directive(key, directivesList[key]); // 注册
    });
  },
};

export default directives;
